class ChatLogController {
	
	static scaffold = ChatLog.class
	
	// print all log    
    def printLog = {
   		def logs = ChatLog.listOrderByCreatedDate()
   		render(contentType:"text/xml") {
   			chat {
	   			logs.each {
					line(name:it.user.name, time:it.createdDate, it.msg)
	   			}
   			}		
		}   		
    }	
	
}
